Suppose the following two commands are acceptable
I would like to say thisCode:$copy hello.txt bye.txt $copy -f hello.txt bye.txt
If user does NOT enter 3 or 4 arguments return error
When I do enter $copy hello.txt bye.txt or $copy -f hello.txt bye.txt , it sitll gives me error. This doesn't make sense, since I entered 3 OR 4 argumentsCode:if (ac != 3 || ac !=4) display error else { ... }
HOWEVER, when I change the if statements to
if (ac != 3 && ac !=4), the program goes onto the else statement